/**
 * 
 */
package org.atmaca.ert.service;

import java.util.List;

import org.atmaca.ert.dao.DbDaoImpl;
import org.atmaca.ert.model.Feed;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author "huseyin_atmaca"
 *
 */
@Service
@Transactional
public class GuiServiceImpl {

	@Autowired
	private DbDaoImpl dbDao;
	
	public List<Feed> listFeeds(Integer maxResult){
		List<Feed> lastNFeeds = dbDao.findLastNFeeds(maxResult);
		
		return lastNFeeds;
	}
	
}
